negotiator.boaframework.offeringstrategy.other
Class ChoosingAllBids

java.lang.Object
  extended by negotiator.boaframework.OfferingStrategy
      extended by negotiator.boaframework.offeringstrategy.other.ChoosingAllBids

public class ChoosingAllBids
extends OfferingStrategy

This class implements an offering strategy which creates a list of possible bids and then offers them in descending order. If all bids are offered, then the last bid is repeated. This strategy has no straight-forward extension of using opponent models.

Version:
15-12-11
Author:
Alex Dirkzwager, Mark Hendrikx

Field Summary
 
Fields inherited from class negotiator.boaframework.OfferingStrategy
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel
 
Constructor Summary
ChoosingAllBids()
          Empty constructor used for reflexion.
ChoosingAllBids(NegotiationSession negoSession, OpponentModel model)
          Constructor which can be used to create the agent without the GUI.
 
Method Summary
 BidDetails determineNextBid()
          Returns the next bid in the sorted array of bids.
 BidDetails determineOpeningBid()
          Determines the first bid to be offered by the agent
 void init(NegotiationSession domainKnow, OpponentModel model, OMStrategy omStrat, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the offering strategy.
 
Methods inherited from class negotiator.boaframework.OfferingStrategy
endSession, getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoosingAllBids

public ChoosingAllBids()
Empty constructor used for reflexion. Note this constructor assumes that init is called next.


ChoosingAllBids

public ChoosingAllBids(NegotiationSession negoSession,
                       OpponentModel model)
Constructor which can be used to create the agent without the GUI.

Parameters:
negoSession - reference to the negotiationsession object
model - reference to the opponent model
Method Detail

init

public void init(NegotiationSession domainKnow,
                 OpponentModel model,
                 OMStrategy omStrat,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Description copied from class: OfferingStrategy
Initializes the offering strategy. If parameters are used, this method should be overridden.

Overrides:
init in class OfferingStrategy
Parameters:
domainKnow - state of the negotiation.
model - opponent model which may be used.
omStrat - opponent model strategy which may be used.
parameters - optional parameters for the offering strategy.
Throws:
java.lang.Exception - if the offering strategy fails to initialize.

determineNextBid

public BidDetails determineNextBid()
Returns the next bid in the sorted array of bids. If there are no more bids in the list, then the last bid is returned.

Specified by:
determineNextBid in class OfferingStrategy
Returns:
bid to offer to the opponent.

determineOpeningBid

public BidDetails determineOpeningBid()
Description copied from class: OfferingStrategy
Determines the first bid to be offered by the agent

Specified by:
determineOpeningBid in class OfferingStrategy
Returns:
the opening bid of the agent.